<include file="Public:header" title="用户日志 - 用户管理" />
<h2>用户日志</h2>
<span>这里记录了用户所有的敏感操作，当前共有 <{$userLog|count=###}> 条日志，总共有 <{$count}> 条日志</span>
<table style="margin-top:10px;text-align:center;">
  <thead>
    <tr>
      <td style="min-width:3%;">#</td>
	  <td>用户</td>
      <td>操作类型</td>
	  <td>IP</td>
      <td>时间</td>
      <td>状态</td>
	  <td>操作</td>
    </tr>
  </thead>
  <tbody class="userList">
  <volist name="userLog" id="vo">
    <tr>
      <td><{$vo.id}></td>
	  <td><div><img src="<{$vo.avatar|parseAvatar=###,50}>" /></div><div><a href="<{:U('?slt=uid&uid='.$vo['uid'])}>"><{$vo.username}></a></div></td>
      <td><?php
switch ($vo['type']) {
	case 1:
		echo '登录';
		break;
	case 2:
		echo '重置密码';
		break;
	case 3:
		echo '修改密码';
		break;
	case 4:
		echo '修改邮箱';
		break;
	default:
		echo '未知';
} 

?></td>
      <td><{$vo.ip}></td>
	  <td><{$vo.time|date="Y-m-d H:i:s",###}></td>
	  <td><?php
switch ($vo['status']) {
	case 0:
		echo '未知';
		break;
	case 1:
		echo '成功';
		break;
	case 2:
		echo '失败';
		break;
	default:
		echo '未知';
} 

?></td>
	  <td><a class="delUser" href="javascript:delLog(<{$vo.id}>);">删除</a></td>
    </tr>
  </volist>
  </tbody>
</table>
<div class="pageSwitcher"><{$page}></div>
<include file="Public:footer" />